package com.system.xingzhi.model;

public class ReturnData {
    private int code;
    private String newToken;
    private Object data;
    private String codeInfo;
    private String detail;
    private static final String[] CodeInfoList ={"请求成功","请求失败","token验证失效","用户不存在"};

    public int getCode() {
        return code;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getCodeInfo() {
        return codeInfo;
    }

    public void setCodeInfo(String codeInfo) {
        this.codeInfo = codeInfo;
    }

    public void setCode(int code) {
        this.code = code;
        this.codeInfo = this.CodeInfoList[code];
    }

    public String getNewToken() {
        return newToken;
    }

    public void setNewToken(String newToken) {
        this.newToken = newToken;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
